|
![](/i/fill.gif) |
Ron Parker <par### [at] my-dejanews com> wrote:
: #declare A=1;
: #declare A=<1,2,3>;
: #declare B=2;
: #declare B=<4,5,6>;
: #declare C=A+B;
In this case povray could issue an error message like "Ambiguous operands".
Then perhaps you can typecast the operands like this:
#declare C=(vector)A+(scalar)B;
Too complicated?-)
: But in general, why is this more useful than just putting the
: type information into the declaration?
It's more intuitive and it saves typing.
Even if overloadable identifiers were not good, overloadable macros should
be very handy.
--
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/
Post a reply to this message
|
![](/i/fill.gif) |